.container {
    display: flex;
    justify-content: center;
}

.animatedbutton{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 300px;
    padding: 12px;
    background: #2c2d44;
    border-radius: 5px;
    background-image: -moz-linear-gradient(45deg, #3f3251 2%, #002025 100%);
    background-image: -webkit-linear-gradient(45deg, #3f3251 2%, #002025 100%);
    background-image: linear-gradient(145deg, #3f3251 2%, #002025 100%);
    box-shadow: 0 0 2px rgb(255, 255, 255),
                0 0 5px rgb(0, 0, 0);
    cursor: pointer;
    user-select: none;
    position: relative;
    font-size: 18px;
    margin-top: 50px;
}

.animatedbutton .btn-text {
    font-size: 20px;
    font-weight: 400;
    color: #fff;
}

.animatedbutton:before{
    position: absolute;
    content: '';
    top: -2px;
    left: -2px;
    height: calc(100% + 4px);
    width: calc(100% + 4px);
    border-radius: 5px;
    z-index: -1;
    opacity: 0;
    filter: blur(25px);
    transition: transform 0.3s, opacity 0.5s;
}

.animatedbutton:hover:before{
    opacity: 1;
    background: linear-gradient(145deg, #5f4b7a 50%, #014b57 100%);
}

@keyframes animate {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.animatedbutton .icon{
    color: white;
    margin-right: 10px;
    display: none;
}

.animatedbutton.checked .icon{
    font-size: 25px;
    text-shadow: 0 0 3px rgb(0, 217, 255, 1);
    display: flex;
}

.icon.spinner.spin{
    animation: spin 1.3s ease-in-out infinite;
}

@keyframes spin {
    100%    {
        transform: rotate(360deg);
    }
}